import { Module } from '@nestjs/common';
import { ConnectMysqlService } from './connect-mysql.service';
import { ConnectMysqlController } from './connect-mysql.controller';

// 引入创建的实体
// 数据库中如果没有该表则创建，有则会覆盖列，但不会清空列值
import { ConnectMysql } from './entities/connect-mysql.entity';
import { TypeOrmModule } from '@nestjs/typeorm';

@Module({
  imports: [TypeOrmModule.forFeature([ConnectMysql])],
  controllers: [ConnectMysqlController],
  providers: [ConnectMysqlService],
})
export class ConnectMysqlModule {}
